import request from '@/utils/request'

// 获取部门树
export const getDeptList = (data) => {
  return request({
    method: 'post',
    url: '/hr-xc-human-resources-perform-manage/generator/rzgl/searchDeptList',
    data
  })
}
// 查询用户
export const getUserList = (params, data, cancelToken) => {
  return request({
    method: 'post',
    url: '/hr-xc-human-resources-perform-manage/generator/rzgl/searchUserList',
    params,
    data,
    cancelToken
  })
}

// 人员绩效管理列表
export const searchUserPerformanceScoreList = (params, data, cancelToken) => {
  return request({
    method: 'post',
    url: '/hr-xc-human-resources-perform-manage/generator/humanDataTemp/searchUserPerformanceScoreList',
    params,
    data,
    cancelToken
  })
}

// 临时导用户数据
export const importUser = (params) => {
  return request({
    method: 'post',
    url: '/human-manage/outData/import',
    params
  })
}


export default {
  getDeptList,
  getUserList,
  searchUserPerformanceScoreList,
  importUser
}
